package com.oig.auth.api.fallback;

import com.oig.auth.api.OAuthLoginService;
import com.oig.common.module.SysResponse;
import com.oig.sys.auth.dto.LoginDto;
import com.oig.sys.auth.vo.LoginVo;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class OAuthLoginFallbackImpl implements OAuthLoginService {

    @Setter
    private Throwable cause;

    @Override
    public SysResponse<LoginVo> userLogin(LoginDto loginDto) {
        log.info("login:{}",loginDto);
        log.error("feign getOrgzSons error", cause);
        return null;
    }
}
